package com.tgpms.web.earlierStage.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.tgpms.web.earlierStage.entity.CoreQuota;

/**
* 表CORE_QUOTA -> null 的基本功能实现
*
* @author DESKTOP-I3TG0H3
* @createDate 2019/11/27
*/
@Mapper
public interface CoreQuotaMapper {
    /**
     * null  deleteByPrimaryKey 实现
     * 
     * @param id
     * @return null int
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:33:45
     */
    int deleteByPrimaryKey(String id);

    /**
     * null  insert 实现
     * 
     * @param record
     * @return null int
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:33:45
     */
    int insert(CoreQuota record);

    /**
     * null  insertSelective 实现
     * 
     * @param record
     * @return null int
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:33:45
     */
    int insertSelective(CoreQuota record);

    /**
     * null  selectByPrimaryKey 实现
     * 
     * @param id
     * @return null com.tgpms.web.earlierStage.entity.CoreQuota
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:33:45
     */
    CoreQuota selectByPrimaryKey(String id);

    /**
     * null  updateByPrimaryKeySelective 实现
     * 
     * @param record
     * @return null int
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:33:45
     */
    int updateByPrimaryKeySelective(CoreQuota record);

    /**
     * null  updateByPrimaryKey 实现
     * 
     * @param record
     * @return null int
     * @author: DESKTOP-I3TG0H3
     * @createDate: 2019-11-27 15:33:45
     */
    int updateByPrimaryKey(CoreQuota record);
    
    //通过唯一键查询
    CoreQuota selByUniqueKey(@Param("taskId")String taskId,@Param("coreId")String coreId);
}